"""
This module contains the Recorder class, which is responsible for recording audio from the microphone.
"""

import queue
import threading

from common.log import logger


class Recorder(object):
    def __init__(self, input_queue: queue.Queue):
        self.input_queue = input_queue
        self.thread = threading.Thread(target=self._read, daemon=True)

    def start_recording(self):
        """
        Start recording audio from the microphone.
        """
        logger.error("NotImplementedError")
        raise NotImplementedError

    def stop_recording(self):
        """
        Stop recording audio from the microphone.
        """
        logger.error("NotImplementedError")
        raise NotImplementedError

    def _read(self):
        """读取音频数据块"""
        raise NotImplementedError
